import axios from "axios";
/**
 * 搜索框商品搜索
 */
export const search=(keyword)=>{
     return  axios({
         method:'get',
         url:'http://kumanxuan1.f3322.net:8001/goods/list',
         params:{
          keyword,
         }
       })
}

// 搜索窗口数据
export const searchWindow=()=>{
  return  axios({
      method:'get',
      url:'http://kumanxuan1.f3322.net:8001/search/index',
    })
}

// 清除历史记录
export const clearHistory=()=>{
  return  axios({
      method:'post',
      url:'http://kumanxuan1.f3322.net:8001/search/clearhistory',
    })
}
